#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <string.h>
void print_str(char* str, int right, int left)
{
	while (left < right)
	{
		char temp = str[left];
		str[left] = str[right];
		str[right] = temp;
		left++;
		right--;
	}
}
int main()
{
	char str[110];
	int cn = 0;
	while ((str[cn] = getchar()) != '\n')
	{
		cn++;
	}
	str[cn] = '\0';
	int left = 0;
	int right = strlen(str) - 1;
	print_str(str, right, left);
	printf("%s", str);
	return 0;
}